﻿using System;
using RazakiBLL;
using RazakiBLL.Managers;

namespace RazakiSite.PagesPublic
{
    public partial class Home : BasePage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            ConfigControls();
        }

        protected override void ConfigControls()
        {
            //اخبار
            UowRazaki uowRazaki = new UowRazaki();
            var minoosoftFirstParent = uowRazaki.NewTagRepository.GetFirstParent(ENewTagExceptionFirstParents.minoosoft.ToString());

            UCNewsList.Data = uowRazaki.NewRepository.GetAllByFirstParentId(uowRazaki.NewTagRepository, minoosoftFirstParent.Id);
        }

    }
}